package com.paic.custserv.common;

import com.paic.custserv.common.enums.WorkOrderStatus;

/**
 * 常量
 * @author ZOUHUIQUN470
 *
 */
public interface Constant {
	
	String SESSION_ACCOUNT = "sessionAcount";
	String SESSION_USER_ID = "sessionUserId";
	String SESSION_USER_NAME = "sessionUserName";
	String SESSION_USER_ROLES = "sessionUserRoles";  	
    String WORK_ORDER_HANDLER_LIST = "workOrderHandlerList";
    String WORK_ORDER_HANDLER_QUEUE = "workOrderHandlerQueue";
    
    String TIME_ACCURATE_START = "00:00:00.000"; //一天开始时间精确值
    String TIME_ACCURATE_END = "23:59:59.999"; //一天结束时间精确值
    
    /**
     * ajax请求
     */
    public static final String AJAX_REQUEST_HEADER_NAME = "XRequestedWith";
    
    /**
     * ajax请求的value
     */
    public static final String AJAX_REQUEST_HEADER_VALUE = "XMLHttpRequest";
    
    
    String MD5_SALT = "custserv"; //MD5全局加密盐
    
    enum ValidFlag {
		Y, //无效
		N; //有效
	}
    
    /**
     * 待处理状态值
     */
    Integer[] MUCH_PENDING_WORK_ORDER_STATUS = {
    	WorkOrderStatus.Pending.getValue(),
    	WorkOrderStatus.InHand.getValue(),
    	WorkOrderStatus.ApplyBack.getValue(),
    	WorkOrderStatus.UnApproved.getValue()
    };
    
    /**
     * 已审核状态值
     */
    Integer[] MUCH_AUDITED_WORK_ORDER_STATUS = {
    	WorkOrderStatus.Approved.getValue(),
    	WorkOrderStatus.UnApproved.getValue()
    };
   
    
    public enum RoleEnum {
    	ORDER_EXECUTOR("EXE_CUSTOMER","客服专员"),
    	ORDER_MANAGER("LEADER_CUSTOMER","客服管理员"),
    	ORDER_TELANSWER("TEL_CUSTOMER","电话接听员");
    	
    	private String code;
        private String desc;
        
        RoleEnum(String code,String desc) {
            this.code = code;
            this.desc = desc;
        }

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}              
        
    }
	
	
}
